const formattedNumber = new Intl.NumberFormat('zh-CN').format(1234567); // 1,234,567
console.log(formattedNumber); // 1,234,567
